//
//  RedactTableViewCell.m
//  Molian
//
//  Created by 小蚕科技 on 15/6/2.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//

#import "RedactTableViewCell.h"

@implementation RedactTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.mySwitch = [[UISwitch alloc] initWithFrame:CGRectMake(DeviceWidth-60, 10, 0, 0)];
        self.mySwitch.onTintColor =SelectViewClolor;
        self.mySwitch.tintColor = RGBA(222, 222, 222, 1);
        self.mySwitch.thumbTintColor =  [UIColor whiteColor];
       // [self.mySwitch addTarget:self action:@selector(click:) forControlEvents:UIControlEventValueChanged];
        self.mySwitch.layer.masksToBounds = YES;
        self.mySwitch.backgroundColor = RGBA(222, 222, 222, 1);
        self.mySwitch.layer.cornerRadius = self.mySwitch.frame.size.height/2;
        [self addSubview:self.mySwitch];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
